package com.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.CkDao;
import com.pojo.Cangku;
import com.pojo.Chuinfo;
import com.pojo.Ruinfo;

@Service("CkService")
public class CkService {
	@Resource(name="CkDao")
	private CkDao Ckdao;
	

	public CkDao getCkdao() {
		return Ckdao;
	}


	public void setCkdao(CkDao Ckdao) {
		this.Ckdao = Ckdao;
	}


	public List<Cangku> getlist() {
		// TODO Auto-generated method stub
		return Ckdao.getList();
	}


	public boolean add(String name, String ckaddress, int cap, String ckstyle) {
		// TODO Auto-generated method stub
		return Ckdao.add(name,ckaddress,cap,ckstyle);
	}


	public List<Ruinfo> getRuinfo() {
		// TODO Auto-generated method stub
		return Ckdao.getRuinfo();
	}


	public Cangku getCk(Integer ckid) {
		// TODO Auto-generated method stub
		return Ckdao.getCk(ckid);
	}


	public List<Chuinfo> getChuinfo() {
		// TODO Auto-generated method stub
		return Ckdao.getChuinfo();
	}


}
